const webpack = require('webpack')
module.exports = {
	lintOnSave: false,
	publicPath: '/fanligo/',
	devServer: {
		// host: '127.0.0.1',
		port: 8000,
		https: true,
		disableHostCheck: true,
		//open: true, //默认是否打开浏览器
		 		proxy: {
		 			'/api': {
		 				target: 'http://zhaoyun.site:81',
		 				ws: true,
		 				changeOrigin: true,
		 				// pathRewrite: {
		 				// 	'^/api': ''
		 				// }
		 			}
		 		}
	},
	configureWebpack: {
		plugins: [
			new webpack.ProvidePlugin({
				$: "jquery",
				jQuery: "jquery",
				"windows.jQuery": "jquery"
			})
		]
	}
}
